<foreach name="arts" item="item">
    <li image-title="{$item['title']}" image-classify="{$item['classify']}" image-time="{$item['time']}" image-label="{$item['label']}" image-num="{$item['number']}" image-id="{$item['id']}">
        <div class="collect-like" image_id="{$item['id']}" user_login="{$item['author']}">
            <if condition="in_array($item['author'], $item['my_liked'])">
                <button type="button" like-event="picture" class="icon_selected"><span class="iconfont icon-dianzan1"></span><span class="like-count">{$item['like_num']}</span></button>
                <else />
                <button type="button" like-event="picture"><span class="iconfont icon-dianzan"></span><span class="like-count">{$item['like_num']}</span></button>
            </if>
        </div>
        <img src="{$item['image']}"/>
    </li>
</foreach>